package com.example.demo.demos.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@PropertySource({"ok.properties","test.properties"})
public class oneController {
    @Value("${my.msg}")
    private String mymsg;
    @Value("${your.msg}")
    private String yourmsg;
    @GetMapping("/se")
    public String getEnvironment(){
        return mymsg+yourmsg;
    }
}
